Skip to content

Improve encapsulation of weight_data_type_freq_#27292

Merged
yuslepukhin merged 3 commits intomainfrom
ashritms/fix-encapsulation
Feb 11, 2026
Merged

Improve encapsulation of weight_data_type_freq_#27292
yuslepukhin merged 3 commits intomainfrom
ashritms/fix-encapsulation

Conversation

@ashrit-ms
Copy link
Contributor

Description

Move weight_data_type_freq_ to private section and add public getter method GetWeightDataTypeFrequency() to provide controlled read-only access. Update inference_session.cc to use the new getter instead of direct member access.

Motivation and Context

To ensure we follow best practices when accessing class variables.

Move weight_data_type_freq_ to private section and add public
getter method GetWeightDataTypeFrequency() to provide controlled
read-only access. Update inference_session.cc to use the new
getter instead of direct member access.
@ashrit-ms ashrit-ms requested a review from yuslepukhin February 9, 2026 22:08
@ashrit-ms ashrit-ms self-assigned this Feb 9, 2026
yuslepukhin
yuslepukhin previously approved these changes Feb 9, 2026
@ashrit-ms ashrit-ms enabled auto-merge (squash) February 9, 2026 22:25
@yuslepukhin
Copy link
Member

/azp run Build Linux CUDA x64 Release

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

auto-merge was automatically disabled February 10, 2026 22:07

Pull request was closed

@yuslepukhin yuslepukhin reopened this Feb 10, 2026
Copy link
Member

@yuslepukhin yuslepukhin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@yuslepukhin yuslepukhin enabled auto-merge (squash) February 10, 2026 23:11
@yuslepukhin yuslepukhin merged commit 765b180 into main Feb 11, 2026
164 of 167 checks passed
@yuslepukhin yuslepukhin deleted the ashritms/fix-encapsulation branch February 11, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants